<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>请假查询</title>
  </head>
  
  <body>
		<%  
	        HttpSession sess = request.getSession();  
	        String message = (String)sess.getAttribute("mes");  
		      
		    if(message == ""){  
		        %>  
		  
		        <%  
		    }else{  
		        %>  
		             <script type="text/javascript">  
		             confirm("<%=message %>");  
		             </script>  
		        <%  
		        sess.setAttribute("mes", "");  
		    }  
 	%>
    <table border="1" width="100%">
      <caption>请假查询</caption>
      <thead>
        <tr>
          <td>请假人</td>
          <td>请假时间</td>
          <td>请假原因</td>
          <td>审批状态</td>
          <td>审批时间</td>
          <td>撤销请假</td>
        </tr>
      </thead>
      <tbody>
		<c:if test="${!empty taskList }">
		<c:forEach items="${taskList }" var="taskList">
	    <tr>
	      <td>${taskList.staffName}</td>
	      <td>${taskList.leaveLong}</td>
	      <td>${taskList.leaveContent}</td>	     
	      <td>${taskList.leaveState}</td>
	      <td>${taskList.END_}</td>
	      <td><a href="###" onclick="showAtRight('deleteAction.action?proId=${taskList.ID_}&assignee=${assignee}&state=${taskList.STATE_}')">撤销</a></td>
	    </tr>
		</c:forEach>
		</c:if>
  		</tbody>
	</table> 
  </body>
</html>
